<!DOCTYPE html>
<html>
<head>
    <title>商品</title>
		<#include "/header.html">
</head>
<body>
<div id="rrapp" v-cloak>
    <div v-show="showList">
        <div class="grid-btn">
			<#if shiro.hasPermission("sys:shopgoods:save")>
            <a class="btn btn-primary" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</a>
			</#if>
			<#if shiro.hasPermission("sys:shopgoods:update")>
            <a class="btn btn-primary" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</a>
			</#if>
			<#if shiro.hasPermission("sys:shopgoods:delete")>
            <a class="btn btn-primary" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
			</#if>
        </div>
        <table id="jqGrid"></table>
        <div id="jqGridPager"></div>
    </div>

    <div v-show="!showList" class="panel panel-default">
        <div class="panel-heading">{{title}}</div>
        <form class="form-horizontal">
														                    <div class="form-group">
                        <div class="col-sm-2 control-label">分类ID</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="shopGoods.catId" placeholder="分类ID"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">商品编号</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="shopGoods.goodsSn" placeholder="商品编号"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">商品名称</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="shopGoods.goodsName" placeholder="商品名称"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">点击数</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="shopGoods.clickCount" placeholder="点击数"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">本店价</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="shopGoods.shopPrice" placeholder="本店价"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">商品详细描述</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="shopGoods.goodsContent" placeholder="商品详细描述"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">商品原始图</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="shopGoods.originalImg" placeholder="商品原始图"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">商品视频</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="shopGoods.originalVideo" placeholder="商品视频"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">是否是否收费</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="shopGoods.isCharge" placeholder="是否是否收费"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">是否上架</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="shopGoods.isOnSale" placeholder="是否上架"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">商品上架时间</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="shopGoods.onTime" placeholder="商品上架时间"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">商品销量</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="shopGoods.salesSum" placeholder="商品销量"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">被收藏数量</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="shopGoods.collectNum" placeholder="被收藏数量"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">所属系统</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="shopGoods.sysSystem" placeholder="所属系统"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">排序</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="shopGoods.sort" placeholder="排序"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">状态</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="shopGoods.status" placeholder="状态"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">备注</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="shopGoods.remarks" placeholder="备注"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">创建时间</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="shopGoods.createdTime" placeholder="创建时间"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">创建人员</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="shopGoods.createdUserId" placeholder="创建人员"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">修改时间</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="shopGoods.modifyTime" placeholder="修改时间"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">修改人员</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="shopGoods.modifyUserId" placeholder="修改人员"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">版本号</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="shopGoods.version" placeholder="版本号"/>
                        </div>
                    </div>
							            <div class="form-group">
                <div class="col-sm-2 control-label"></div>
                <input type="button" class="btn btn-primary" id="btnSaveOrUpdate" data-loading-text="保存中..." @click="saveOrUpdate" value="确定"/>
                &nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
            </div>
        </form>
    </div>
</div>

<script src="${request.contextPath}/statics/js/modules/sys/shopgoods.js?_${.now?long}"></script>
</body>
</html>